import { ICommonParams, IHeaders } from '@dfeidao/nodejs/interfaces';
import { HTMLElement } from 'node-html-parser';
import s from './ns';

import init from '@dfeidao/nodejs/component';

import { id, refsystemid, spaceid, systemid } from './config';

import tpl from './tpl';

export default function main(html: HTMLElement, url: string, msg: ICommonParams, headers: IHeaders, query: {}) {
	const actions = {};

	return init(id, tpl, s, actions, html, url, msg, headers, query, { spaceid, systemid, refsystemid });
}
